/**
 * Created by Dull on 2016/11/16 0016.
 */
const DEFAULT_KEY='todolist-key';
export default {
  fetch:function () {
    return JSON.parse(window.localStorage.getItem(DEFAULT_KEY)||'[]');
  },
  save:function (items) {
    window.localStorage.setItem(DEFAULT_KEY,JSON.stringify(items));
  }
}
